package com.foreknow.eldclient.service.impl;

import com.foreknow.eldclient.dao.UserMapper;
import com.foreknow.eldclient.po.User;
import com.foreknow.eldclient.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper UM;
    @Override
    public User getUserByIdByPass(String userId, String password) throws Exception {
        return UM.getUserByIdByPass(userId,password);
    }

    @Override
    public int getUserById(String userId) throws Exception {
        return UM.getUserById(userId);
    }

    @Override
    public int saveUser(User user) throws Exception {
        return UM.saveUser(user);
    }

    @Override
    public String getUserImg(String userId) {
        return UM.getUserImg(userId);
    }

    @Override
    public int updateUser(User user) {
        return UM.updateUser(user);
    }
}
